# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $

inherit eutils

DESCRIPTION="libflv is able to create FLV streams for use with Flash/SWF
movies."
HOMEPAGE="http://klaus.geekserver.net/libflv/"
SRC_URI="mirror://sourceforge/${PN}/${PN}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc amd64 ~ppc ppc-macos ~mips hppa"
S=${WORKDIR}/${PN}
IUSE=""

RDEPEND="virtual/libc"
DEPEND="app-arch/unzip
		dev-lang/lua"

src_compile() {
	cd src
	make || die "make failed."
}

src_install() {
	cd src
	sed -ie "s:usr:${D}usr:g" Makefile
	make DESTDIR=${D} install || die "install failed."
}
